package com.nowcoder.community.service;/**
 * 功能描述
 *
 * @author 21775
 * @date 2022/09/18  22:31
 */

import com.nowcoder.community.entity.Comment;

import java.util.List;

/**
 *@ClassName CommentService
 *@Description TODO 评论服务类
 *@Author 21775
 *@Date 2022/9/18 22:31
 *@Version 1.0
 */
public interface CommentService {

    public List<Comment> findCommentsByEntity(int entityType, int entityId, int offset, int limit);

    public int findCommentCount(int entityType, int entityId);

    int addComment(Comment comment);

    Comment selectCommentById(int id);
}
